<template>
  <div id="app">
    <div v-if="visible" style="background: rgba(0, 101, 184, 1)">
      <top-bar ></top-bar>
    </div>
    <router-view></router-view>
    <footer-links style="transform: translateY(600px)"></footer-links>
  </div>
</template>

<script>
  import TopBar from "./components/login/topBar/topBar";
  import FooterLinks from "./components/home/footerLinks/footerLinks";

  export default {
    name: 'app',
    components: {FooterLinks, TopBar},
    data() {
      return {}
    },
    computed: {
      visible() {
        if (this.$route.path.indexOf('AppCenter') != -1 || this.$route.path.indexOf('DocumentCenter') != -1 || this.$route.path.indexOf('ProcessViewer') != -1) {
          return true;
        }
        return false;
      }
    }
  }
</script>

<style lang="scss">

</style>
